package com.example.testtouch2;

import com.demo.androidgame.fx.DynamicGameObject;

public class Player extends DynamicGameObject {

	public static final float BOB_WIDTH = World.X_BOX;
	public static final float BOB_HEIGHT = World.Y_BOX;
	public static final float SENCING_TIME = 0.5f;
	public static final int PLAYER_STATE_RAGULAR= 5;
	public static final int PLAYER_STATE_STOP= 0;
	public static final int PLAYER_STATE_RIGHT= 1;
	public static final int PLAYER_STATE_LEFT= 2;
	public static final int PLAYER_STATE_TOP= 3;
	public static final int PLAYER_STATE_BOTTOM= 4;

	int playerState;
	float currentSencingTime;
	Player player;
	public Player(float x, float y) {
		super(x, y, BOB_WIDTH, BOB_HEIGHT);

	}

	public void update(float deltaTime) {

		currentSencingTime+= deltaTime;
		position.add(velocity.x * deltaTime, velocity.y * deltaTime);
        bounds.lowerLeft.set(position).sub(bounds.width / 2, bounds.height / 2);
    	  
	}
	
	public void playerStop(){
	  
		velocity.set(0,0);
		
	}
	
	public void hitEnemy() {

	}

	public void interrupted() {

		velocity.set(0, 0);
		
	}

	public void appointedStop() {

		
	}
}